package com.tencent.txcc.mapper;

import com.tencent.txcc.domain.Course;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.tencent.txcc.domain.Teacher;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author director
 * @since 2022-10-07
 */
public interface CourseMapper extends BaseMapper<Course> {

    void insertTeacher(@Param("courseId")Long courseId, @Param("teacherIds")List<Long> teacherIds);

    void patchDel(List<Long> ids);

    List<Teacher> selectTeacherById(Long courseId);
}
